import http from "../utils/http/service";

// 查询施工质量检查列表
export const qtyCheckList = (data): any => {
  return http.post(`/snow-admin/qtyCheck/qtyCheckList`, data);
};

// 查询施工质量检查详情
export const checkInfo = (data): any => {
  return http.get(`/snow-admin/qtyCheck/info/${data.id}`);
};

// 查询检查项列表
export const checkItemList = (data): any => {
  return http.post(`/snow-admin/monQty/checkItem/checkItemList`,data);
};

// 查询检查记录列表
export const checkRecordList = (data): any => {
  return http.post(`/snow-admin/monQty/checkRecord/checkRecordList`, data);
};

// 新增检查记录
export const addCheckRecord = (data): any => {
  return http.post(`/snow-admin/monQty/checkRecord/add`, data);
};

// 发起流程
export const flowStart = (data): any => {
  return http.post(`/snow-admin/monQty/checkRecord/flowStart`, data);
};

// 审批流程
export const flowSubmit = (data): any => {
  return http.post(`/snow-admin/monQty/checkRecord/flowSubmit`, data);
};

// 审批驳回
export const flowReject = (data): any => {
  return http.post(`/snow-admin/monQty/checkRecord/flowReject`, data);
};

// 查询检查记录详情
export const checkRecordInfo = (data): any => {
  return http.get(`/snow-admin/monQty/checkRecord/info/${data.id}`);
};
